package com.luyang.platform.contact.rest.user.request;

import com.luyang.framework.validator.annotation.CheckPhoneNum;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 创建用户请求BODY
 *
 * @author lu_yang
 */
public record CreateUserReq(
    @NotBlank(message = "姓名为空")
    String name,
    String nickname,
    String enName,

    @CheckPhoneNum
    String mobile,
    String email,

    String gender,
    String country,
    String city,

    String leaderUserId,
    String employeeType,
    String joinDate,
    @NotNull
    @Size(min = 1)
    List<String> departmentIds,

    String remark
) {
}
